package com.xinqi.modules.databank.v2.mapper;

import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.databank.dto.rsp.ResourceInteractionLogResultDTO;
import com.xinqi.modules.databank.v2.domain.CourseResourceInteractionLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 学生答题记录-Mapper层
 * @author: dzy
 * @date: 2023/03/15
 */
@Mapper
public interface CourseResourceInteractionLogMapper extends SuperMapper<CourseResourceInteractionLogEntity> {

    /**
     * 获取学生答题数据
     * @author czy
     */
    List<ResourceInteractionLogResultDTO> findList(@Param("contentId") Long contentId, @Param("partId") Long partId);

    /**
     * 获取 参与数量
     * @author czy
     */
    Integer findCount(@Param("contentId") Long contentId, @Param("partId") Long partId);

}
